home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Oct 90 / MacApp.Tech$ 10⁄26⁄90 / 2257-Sybase and MacApp-Oct90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.2 KB  |  37 lines  |  [TEXT/GEOL]

  1. Item    2454538                         26-Oct-90        15:25PDT
  2.  
  3. From:   KRIPALU                         Kripalu Ctr, Michael A Latta,PRT
  4.  
  5. To:     BBSF.DEV                        Babcock & Brown, Michael Harper,AST
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Sybase and MacApp
  10.  
  11. Michael Harper:
  12.  
  13. The problem you speak of in you Sept 17 applelink is due to the need for the
  14. Sybase segments to be LOCKED and made RESIDENT.  This involves calling the
  15. MacApp routines to make the segment resident.  In Pascal the following does the
  16. trick.
  17.  
  18.    { Force the Sybase segment to be memory resident.}
  19.    sybSeg := GetSegNumber(@dbbind);
  20.    SetResidentSegment(sybSeg, TRUE);
  21.    sybSeg := GetSegNumber(@tss_open);
  22.    SetResidentSegment(sybSeg, TRUE);
  23.    sybSeg := GetSegNumber(@dbconvert);
  24.    SetResidentSegment(sybSeg, TRUE);
  25.    sybSeg := GetSegNumber(@dbcmd);
  26.    SetResidentSegment(sybSeg, TRUE);
  27.    sybSeg := GetSegNumber(@dbpasswd);
  28.    SetResidentSegment(sybSeg, TRUE);
  29.    sybSeg := GetSegNumber(@dbsvinfo);
  30.    SetResidentSegment(sybSeg, TRUE);
  31.  
  32. Please let me know if you are still working on this.  I am interested in
  33. talking to any other developers that are using MacApp and Sybase.
  34.  
  35.                                             Mike Latta
  36.  
  37.